l100/Hoofdstuk 7/Opdracht 7.6.php

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <?php function prijs($volwassene,$kinderen = 0){ $prijs = $volwassene * 25 + $kinderen * 10; return $prijs; } echo (prijs(2)) ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse